<script>
var frm	= document.getElementById("frm");

function goto_submit(name)
{

	if(name)
	{
		document.getElementById("action_name").value = name;

		frm.target = '_self';
		frm.action = '/home/insert_json';
		frm.submit();

		return true;
	}

	alert("参数错误！");

	return false;
}

function goto_view(position)
{
	frm.target = '_blank';
	frm.action = '/preview/' + position;
	frm.submit();
}
</script>
